import { _decorator, Component, Label, Node } from "cc";
const { ccclass, property } = _decorator;

@ccclass("GamePlayUI")
export class GamePlayUI extends Component {
  @property(Label)
  public scoreLabel: Label = null;

  protected start() {}

  protected update(deltaTime: number) {}

  public addScore(score: number) {
    this.scoreLabel.string = `${score}`;
  }

  public show() {
    this.node.active = true;
  }

  public hide() {
    this.node.active = false;
  }
}
